package main.java.com.negromotad.view;

import java.awt.EventQueue;

import javax.swing.UIManager;

import main.java.com.negromotad.controller.DefaultController;
import main.java.com.negromotad.model.TMRunManager;

public class Main {

	/**
	 * @param args
	 */
	private TMRunManager model;
	private DefaultController controller;
	private MainView mainView;

	// private PopUpModel popUpModel;

	public Main() {
		// popUpModel = new PopUpModel();
		model = new TMRunManager();

		controller = new DefaultController();
		controller.addModel(model);
		mainView = new MainView(controller);
		controller.addView(mainView);

		mainView.pack();
		mainView.setVisible(true);
	}

	public static void main(String[] args) {

		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					UIManager
							.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
					new Main();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});

	}

}
